﻿<UserControl x:Class="Mengsk.ProxyDelivery.Print.UI.SystemConfigUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="1000" Loaded="UserControl_Loaded">

    <StackPanel Orientation="Vertical" Margin="5">
        <GroupBox Header="打印机配置">

            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="85"/>
                    <ColumnDefinition Width="300"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Margin="3" Text="纸质单打印机:" VerticalAlignment="Center"/>
                <ComboBox Grid.Row="0" Grid.Column="1" Margin="3" Name="cbbDeliveryPrinter" />
                <TextBlock Grid.Row="1" Grid.Column="0" Margin="3" Text="热敏单打印机:" VerticalAlignment="Center"/>
                <ComboBox Grid.Row="1" Grid.Column="1" Margin="3" Name="cbbHotPrinter"  />
                <TextBlock Grid.Row="2" Grid.Column="0" Margin="3" Text="拿货单打印机:" VerticalAlignment="Center"/>
                <ComboBox Grid.Row="2" Grid.Column="1" Margin="3" Name="cbbGoodsPrinter" />
            </Grid>
        </GroupBox>

        <GroupBox Header="圆通电子面单接口">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="85"/>
                    <ColumnDefinition Width="300"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="是否处于测试:" Margin="3" VerticalAlignment="Center"/>
                <CheckBox Grid.Row="0" Grid.Column="1" Content="" Name="chkYTODebug" VerticalAlignment="Center"/>
                <TextBlock Grid.Row="3" Grid.Column="0" Text="用户ID:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="3" Grid.Column="1" Name="tbYTOClientId" Margin="3" VerticalAlignment="Center"/>
                <TextBlock Grid.Row="4" Grid.Column="0" Text="用户密码:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="4" Grid.Column="1" Name="tbYTOClientPass" Margin="3" VerticalAlignment="Center"/>
            </Grid>
        </GroupBox>

        <StackPanel Orientation="Horizontal" Margin="3" HorizontalAlignment="Center">
            <Button Name="btnSave" Content="保存" Click="btnSave_Click" Width="60" HorizontalAlignment="Center" Margin="3"/>
        </StackPanel>
    </StackPanel>
</UserControl>
